package org.pluslibs.framework.swingplus.utils;

public interface JMessageInterface {

    public void beep();
    
    public void displayMessage(String title, String message);
    public void displayMessage(String message);
    
    public void displayError(String title, String message);
    public void displayError(String message);
    public void displayError(Throwable e);

    /**
     * Simple stdout class
     */
    public class stdout implements JMessageInterface {
        public void beep() {
            System.out.println("Beep!");
        }

        public void displayMessage(String title, String message) {
            System.out.println("displayMessage(" + title + ") " + message);
        }
        public void displayMessage(String message) {
            System.out.println("displayMessage() " + message);
        }

        public void displayError(String title, String message) {
            System.out.println("displayError(" + title  +") " + message);
        }
        public void displayError(String message) {
            System.out.println("displayError() " + message);
        }
        public void displayError(Throwable e) {
            System.out.println("displayError() " + e.getMessage());
            e.printStackTrace();
        }
    }
    
}
